export interface ModelFieldVO {
  /**
   * 字段ID
   */
  id: string | number;

  /**
   * 字段名称
   */
  fieldName: string;

  /**
   * 字段标识
   */
  fieldKey: string;

  /**
   * 字段类型(text/textarea/number/date/select/radio/checkbox/image/file)
   */
  fieldType: string;

  /**
   * 默认值
   */
  defaultValue: string;

  /**
   * 选项(JSON格式)
   */
  options: string;

  /**
   * 是否必填(0否 1是)
   */
  required: number;

  /**
   * 应用模型(article/page/category)
   */
  modelType: string;

  /**
   * 排序号
   */
  sort: number;

  /**
   * 输入提示
   */
  placeholder: string;

  /**
   * 验证规则
   */
  validateRule: string | number;

  /**
   * 状态(0正常 1停用)
   */
  status: string;

  /**
   * 备注
   */
  remark: string;

}

export interface ModelFieldForm {
  id?: number | string;
  fieldName: string;
  fieldKey: string;
  fieldType: string;
  defaultValue: string;
  options: string;
  required: number;
  modelType: string;
  sort: number;
  placeholder: string;
  validateRule: string;
  status: string;
  remark: string;
}

export interface ModelFieldQuery extends PageQuery {
  modelType?: string;
  fieldName?: string;
  fieldKey?: string;
  fieldType?: string;
}

export interface ModelField {
  sort: number;
  fieldKey: string;
  fieldName: string;
  fieldType: string;
}



